
public class starout {

	public static void main(String[] args) {
String a="abreadkk";
int b=a.indexOf("bread");
int c=a.lastIndexOf("bread");
System.out.println(b+","+c);
}
}
